Skip to content

docs: clarify using opts = {} vs config = function() ... require('plu…#1316

Merged
feoh merged 3 commits into
nvim-lua:masterfrom
bleacheda:bleacheda-clarify-docs
Feb 15, 2025
Merged

docs: clarify using opts = {} vs config = function() ... require('plu…#1316
feoh merged 3 commits into
nvim-lua:masterfrom
bleacheda:bleacheda-clarify-docs

Conversation

@bleacheda

Copy link
Copy Markdown
Contributor

The current documentation mentioning that using "require" is equivalent to using "opts" without detailing the use in the "config = function()" block seems inaccurate.

Lower in the configuration the "config = function()" block is used without clarifying why it is needed and what it does.

This clarification may help new users understand the difference between the two, or how and where to place the "require" statement in order for it to be equivalent to using "opts".

bleacheda and others added 3 commits January 19, 2025 21:24
…gin').setup({}) .. end

The current documentation mentioning that using "require" is equivalent to using "opts" without detailing the use in the "config = function()" block seems inaccurate.
Lower in the configuration the "config = function()" block is used without clarifying why it needed and what it does.
This clarification may help new users understand the difference between the two, or how and where to place the "require" statement.

@BALAJI24092001 BALAJI24092001 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The added documentation seems helpful and will be easy for new users to understand and work with the setup better.

@feoh

feoh commented Feb 15, 2025

Copy link
Copy Markdown
Collaborator

Thank you. Great work!

@feoh feoh merged commit 71ad926 into nvim-lua:master Feb 15, 2025
@bleacheda bleacheda deleted the bleacheda-clarify-docs branch February 15, 2025 14:48
@moustario moustario mentioned this pull request Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants